<?php 
declare(strict_types=1);

use Distributed\Server\DistributedServer;

require_once 'vendor/autoload.php';

function dump($data)
{
	
	$trance = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
	
	print_r(PHP_EOL.'-------------------------------------'.PHP_EOL);
	
	print_r($trance[0]['file'].'  <=====>  '.$trance[0]['line'].PHP_EOL);
	print_r($data);
	
	
	print_r(PHP_EOL.'-------------------------------------'.PHP_EOL);
	
}

define('BASE_PATH', str_replace('\\','/',realpath(dirname(__FILE__).'/')).'/config');


$server = new DistributedServer();

$server->start();
